<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
echo "<h2>Права доступа</h2>";
$this->table->set_heading('id', 'Группа', 'Действия');
$tmpl = array('table_open' => '<table border="0" cellpadding="0" cellspacing="0" class="admin_table">');
$this->table->set_template($tmpl);

$class = 'users_rights';
if ($this->users_rights_model->check_rights($class, 'edit', true)) $canedit = 1;

foreach ($pages as $page) {
	$this->table->add_row(
			$page['id'],
			"<a href='/admin/users_rights/edit/".$page['id']."/'>".$page['description']."</a>",
			showmeactions(
					'users_rights',
					$page['id'],
					0,
					$canedit, 0, 0,
					$from
				)
		);
}
echo $this->table->generate();
echo $paging;
//echo showmeadd('users', 'Добавить права');
echo "<div class='cc'></div>";
?>
